import request from '@/utils/request'
export default{
// 添加课程信息
  addCourseInfo(courseInfo) {
    return request({
      url: `/eduservice/course/addCourseInfo`,
      method: 'post',
      data: { ...courseInfo }
    })
  },

  getAllSubject(id) {
    return request({
      url: `/eduservice/course/getCourseInfo?courseId=` + id,
      method: 'get'
    })
  },

  isExist(id) {
    return request({
      url: `/eduservice/course/isExist?courseId=` + id,
      method: 'get'
    })
  },
  updateCourseInfo(courseInfo) {
    return request({
      url: `/eduservice/course/updateCourseInfo`,
      method: 'post',
      data: { ...courseInfo }
    })
  }
}
